<div id="container">
    <div class="content">
        <div class="overview">
            <?php
                foreach($data as $value){
                    ?>
                        <div class="campaign-item">
                            <div class="campaign-item-image">
                                <a title="<?php echo $value['campaign_title']; ?>" href="<?php echo ROOT_URL."campaign/".$value['cid']."-".$value['campaign_url']; ?>">
                                    <?php
                                    if($value['campaign_image']){
                                        echo '<img src="'.ROOT_URL.'upload/images/'.$value['campaign_image'].'">';
                                    }
                                ?>
                                </a>
                            </div>
                            <div class="campaign-item-content">
                                <div class="col-content-pa">
                                    <p class="item-title">
                                        <a title="<?php echo $value['campaign_title']; ?>" href="<?php echo ROOT_URL."campaign/".$value['cid']."-".$value['campaign_url']; ?>">
                                            <?php
                                                if(strlen($value['campaign_title'])>30){
                                                    echo mb_substr(strip_tags(html_entity_decode($value['campaign_title'], ENT_QUOTES, 'UTF-8')),0, 30, 'UTF-8')."...";
                                                }else{
                                                    echo $value['campaign_title'];
                                                }

                                            ?>
                                        </a>
                                    </p>
                                    <p class="item-content">
                                        <?php
                                            if(strlen($value['campaign_short_description']) > 150){
                                                echo mb_substr(strip_tags(html_entity_decode($value['campaign_short_description'], ENT_QUOTES, 'UTF-8')),0, 150, 'UTF-8')."...";
                                            }else{
                                                echo $value['campaign_short_description'];
                                            }
                                        ?>
                                    </p>
                                    <p class="item-readmore"><a href="<?php echo ROOT_URL."campaign/".$value['cid']."-".$value['campaign_url']; ?>">> Đọc thêm</a></p>
                                </div>
                            </div>
                        </div>
                    <?php
                }
            ?>
            <!--<div class="campaign-item">
                <div class="campaign-item-image">
                    <a href=""><img src="<?php /*echo ROOT_URL; */?>upload/images/c1.png"></a>
                </div>
                <div class="campaign-item-content">
                    <div class="col-content-pa">
                        <p class="item-title"><a href="<?php /*echo ROOT_URL; */?>campaign/a">FILIPPO BERIO® OLIVE OIL</a></p>
                        <p class="item-content">A healthy, delicious and easy addition to your favorite everyday meals. </p>
                        <p class="item-readmore"><a href="<?php /*echo ROOT_URL; */?>campaign/a">> Đọc thêm</a></p>
                    </div>
                </div>
            </div>
            <div class="campaign-item">
                <div class="campaign-item-image">
                    <a href=""><img src="<?php /*echo ROOT_URL; */?>upload/images/c1.png"></a>
                </div>
                <div class="campaign-item-content">
                    <div class="col-content-pa">
                        <p class="item-title"><a href="<?php /*echo ROOT_URL; */?>campaign/a">FILIPPO BERIO® OLIVE OIL</a></p>
                        <p class="item-content">A healthy, delicious and easy addition to your favorite everyday meals. </p>
                        <p class="item-readmore"><a href="<?php /*echo ROOT_URL; */?>campaign/a">> Đọc thêm</a></p>
                    </div>
                </div>
            </div>
            <div class="campaign-item">
                <div class="campaign-item-image">
                    <a href=""><img src="<?php /*echo ROOT_URL; */?>upload/images/c1.png"></a>
                </div>
                <div class="campaign-item-content">
                    <div class="col-content-pa">
                        <p class="item-title"><a href="<?php /*echo ROOT_URL; */?>campaign/a">FILIPPO BERIO® OLIVE OIL</a></p>
                        <p class="item-content">A healthy, delicious and easy addition to your favorite everyday meals. </p>
                        <p class="item-readmore"><a href="<?php /*echo ROOT_URL; */?>campaign/a">> Đọc thêm</a></p>
                    </div>
                </div>
            </div>-->

        </div>
    </div>
</div>